export const saveSearchHistory=(arr:Array<string>)=>{
  // 进行数组去重
  const res = [...new Set(arr)] 
// 进行本地存储
localStorage.setItem("search-history",JSON.stringify(res))
}